<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>EPC工程总承包管理系统</title>
 <link rel="stylesheet" href="css/bootstrap.min.css" />
 <link rel="stylesheet" href="css/font-awesome.css" />
 <!-- <link rel="stylesheet" type="text/css" href="./EPC工程总承包管理系统_files/icon.css" />
 <link rel="stylesheet" type="text/css" href="./EPC工程总承包管理系统_files/index-dialog.css" />  -->
 <script src="js/jquery.min.js"></script>
 <!-- <script type="text/javascript" src="./EPC工程总承包管理系统_files/jquery.easyui.min.js"></script>
 <!-- <script src="./EPC工程总承包管理系统_files/bootstrap.min.js"></script>  -->
 <script src="js/vue.min.js"></script>
 <!-- <script src="./EPC工程总承包管理系统_files/vue-resource.min.js"></script>   -->
 <script src="js/summer-vue.js"></script>
 <!-- <script src="./EPC工程总承包管理系统_files/jquery.easyui.min.js"></script>  -->
 <script src="js/frameTab.js"></script>
 <!-- <script src="./EPC工程总承包管理系统_files/index-dialog.js"></script>  -->
 <script src="js/mainframe-util.js"></script>


 <!-- <script type="text/javascript" src="./EPC工程总承包管理系统_files/jquery.json-2.2.js"></script>
 <link rel="stylesheet" href="./EPC工程总承包管理系统_files/zTreeStyle.css" type="text/css" />
     <script type="text/javascript" src="./EPC工程总承包管理系统_files/jquery.ztree.core.js"></script>
 <script type="text/javascript" src="./EPC工程总承包管理系统_files/jquery.ztree.excheck.js"></script>
 <script type="text/javascript" src="./EPC工程总承包管理系统_files/jquery.ztree.exedit.js"></script>  -->
 <style type="text/css">
  body{
   overflow:hidden;
  }

  .su_herder{
   background-color: #FFF;

  }
  .su_left{
   background-color: #FFF;

  }
  .su_right{
   background-color: #FFF;
  }
  .navbar-nav{

   font-size: 10pt;
  }
  .su_navbar_sub{

   background-color: rgb(0,101,105);
   height: 38px;
   border-top:none;
   font-size: 8pt;
  }


  #currDirect_{
   display:inline-block;
   cursor: pointer;
   /*  font-size:13px;
    font-family: 宋体;
     color:#09f;  */
   font-style:normal ;
   padding-top:13px;
   padding-right:13px;
  }

  #directSwitch_c{
   padding: 5px;
   border: 1px solid rgb(0,101,105);
   float: left;top:78px;right:173px;
   background-color:red; overflow:auto;
   position:absolute;z-index: 999999;
   background-color: #fff;
   width:300px;
   display: none;
   overflow-x: hidden}

  .ztree{
   margin: 0;
   padding: 5px;
   color: #333;
   width:auto;
  }



  #quit{color: #000;
   font-size:12px;
   margin-left:50px;
   z-index:999999;
   display:inline;

   cursor: pointer;}


  #directSwitch_c td{text-align: left;}
  #directSwitch{width:100%;}



  div_panel{
   widht:99%;
   min-height: 500px;

  }
 </style>
 <script type="text/javascript">

     var basePath="http://epcc.hhwy.org/epc/";
     var deparmentName = 'null';
     var subDepartmentName ='null';
     function loginOut(){

         // window.location.href=basePath+"/sso/client/logout";
         $.ajax({
             url:"http://epcc.hhwy.org/epc/sso/client/logout",
             type:"get",
             success:function(data){
                 /* window.location = window.location; */
                 window.location.reload();
             }
         });
     }
     $(function(){
         $(".su_top_ss").before("<div id=\"currDirect_\"  title=\"点击切换项目部\">现场项目部</div>");
         if (deparmentName!="null"||subDepartmentName!="null") {
             console.log("deparmentName",deparmentName);
             console.log("subDepartmentName",subDepartmentName);
             $("#currDirect_").text(subDepartmentName=="null"?deparmentName:subDepartmentName);
             $("#currDirect_").append("<div id=\"quit\"  title=\"退出项目部\">退出</div>");
             deparmentName = "null";
             subDepartmentName = "null";
         }else{



         }

         $(".su_top_ss").css("display","none");

         $("#currDirect_").click(function(){

             $("#directSwitch_c").toggle("fast");

         });

         $("#quit").click(function(){
             $.ajax({
                 url:"http://epcc.hhwy.org/epc/project/convertToSystemArea",
                 contentType: "application/json;charset=UTF-8",
                 type:"get",
                 sync: false,
                 success : function(text) {
                     console.log(text);
                     window.document.location.reload();
                 },error:function(){


                 }
             });
             window.document.location.reload();
         });


         var setting = {
             view: {
                 showLine: false,
                 fontCss: setFontCss
             },data: {
                 simpleData: {
                     enable: true,
                     idKey: "id",
                     pIdKey: "pId",
                     rootPId: 0
                 }
             },callback: {
                 beforeClick: beforeClick,
                 onClick: onClick
             }};
         // $.ajax({
         //   url:"http://epcc.hhwy.org/epc/common/departmentTree",
         //       contentType: "application/json;charset=UTF-8",  
         //       type:"get",
         //    dataType : 'json',
         //    success: function(msg){
         //       if(msg.length==0){
         //           $("#currDirect_").css("display","none")
         //           }
         //    $.fn.zTree.init($("#treeDemo"), setting, msg);

         //    }, error: function(msg){

         //    }
         // });
     });
     function setFontCss(treeId, treeNode) {
         if(treeNode.is_department=="0"){
             return  { color: "red"};
         }else if(treeNode.is_department=="1"){
             return { color: "blue"};
         }else{

         }
         //return color;
         // return treeNode.is_department=="0" ? { color: "red"} : {};
     }
     function beforeClick(treeId, treeNode) {
         return (treeNode.click != false);
     }
     function onClick(event, treeId, treeNode, clickFlag) {
         debugger;
         console.log(treeNode.id);
         console.log(treeNode.name);
         console.log(treeNode);
         if(treeNode.is_department=="0"||treeNode.is_department=="1"){
             $.ajax({
                 url:"http://epcc.hhwy.org/epc/project/convertToProjectArea?directId="+treeNode.id,
                 contentType: "application/json;charset=UTF-8",
                 type:"get",
                 dataType : 'json',
                 success : function(text) {

                 },error: function(text) {


                     if($("#directSwitch_c").toggle("fast")){
                         window.location.reload();
                     }


                 }
             });
         }


     }



 </script>
</head>
<body>
<div class="topHerder">
 <div id="su_herder" class="navbar su_herder">
  <div class="su_navbar_wrapper">
   <div class="navbar-header">
    <a class="su_logo" href="http://epcc.hhwy.org/epc/view/fweb-mainframe-web/modules/index/index#"><img class="su_logo_img" src="logo.png" /></a>
   </div>
   <div id="navbar" class="navbar-collapse collapse">
    <div class="navbar-right su_navbar">
     <!--系统一级分类-->
     <ul class="su_navbar_menu nav navbar-nav">
      <li class="active"> 职能管理 </li>
      <li> 系统 </li>
     </ul>
     <!-- 按钮 -->
     <ul class="nav navbar-nav">
      <li>
       <div id="currDirect_" title="点击切换项目部">
        现场项目部
       </div>
       <div class="su_top_ss" style="display: none;">
       </div> </li>
      <li class="dropdown dropdown_list"> <a href="http://epcc.hhwy.org/epc/view/fweb-mainframe-web/modules/index/index#" data-toggle="dropdown"> <em class="fa fa-bell-o animated-bell" style="display:inline-block;"></em>
       <div class="label label-danger"></div> </a> </li>
      <li> <a href="http://epcc.hhwy.org/epc/view/fweb-mainframe-web/modules/index/index#"> <em class="fa fa-envelope"></em> </a> </li>
     </ul>
     <!--用户信息-->
     <div class="menu-group">
      <div tabindex="1">
       <a class="btn btn-default menu-default su_menu">
        <!-- {{{menuname}}} -->
        <!-- 修改 --> <img class="su_user_head" src="./user_head.png" /> 系统管理员
        <!-- 修改完成 --> <span class="fa fa-ellipsis-v"></span> </a>
      </div>
      <div class="menu-option" style="display: none;">
       <ul slot="menu-option">
        <li> <a onclick="CreateDiv('grzx','http://epcc.hhwy.org/epc//view/fweb-mainframe-web/modules/index/user-settings','个人中心')"><i></i>个人中心</a> </li>
        <li> <a onclick="loginOut()"><i></i>退出</a> </li>
       </ul>
      </div>
     </div>
    </div>
   </div>
  </div>
 </div>
 <!--系统二级分类导航-->
 <div id="navsub" class="su_navbar_sub">
  <ul>
   <li> <span> 工程管理 </span> </li>
   <li> <span> 前期管理 </span> </li>
   <li> <span> 招投标管理 </span> </li>
   <li class="active_sub"> <span> 经营管理 </span> </li>
   <li> <span> 设计管理 </span> </li>
   <li> <span> 物资管理 </span> </li>
  </ul>
 </div>
 <div class="clearfix"></div>
</div>
<div id="content">
 <div class="su_left" id="su_left" style="height: 638px;">
  <div class="su_menu_topbar" id="menu_topbar">
   <span class="su_menu_tit" id="menu_tit">经营管理</span>
   <a class="su_collapsed"> <i class="fa fa-align-justify"></i> </a>
  </div>
  <div class="su_left_menu" style="height: 596px;">
   <div class="su_tree ">
    <div class="su_node_data active1">
     <div class="su_node">
      <label title="合同管理"> <span class="node-icon"><i class="fa fa-caret-down"></i></span> <span class="su_node_icon"><img src="下载.png" /></span><span class="su_node_name">合同管理</span> </label>
     </div>
     <div class="su_children">
      <div class="su_nodes">
       <div class="su_tree ">
        <div class="su_node_data active1">
         <a href="http://www.baidu.com" style="text-decoration: none;"
            target="mainframe" >
          <div class="su_node active" >
           <label title="总承包工程合同"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">总承包工程合同</span> </label>
          </div>
         </a>

        </div>
        <div class="su_node_data active1">
         <a href="https://www.aliyun.com/" style="text-decoration: none;"
            target="mainframe" >
          <div class="su_node" >
           <label title="总承包工程合同2"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img
                   src="下载2.png" /></span><span class="su_node_name">总承包工程合同2</span> </label>
          </div>
         </a>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="物资采购合同"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">物资采购合同</span> </label>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div class="su_node_data">
     <div class="su_node">
      <label title="资金计划"> <span class="node-icon"><i class="fa fa-caret-right"></i></span> <span class="su_node_icon"><img src="下载.png" /></span><span class="su_node_name">资金计划</span> </label>
     </div>
     <div class="su_children" style="display: none;">
      <div class="su_nodes">
       <div class="su_tree ">
        <div class="su_node_data">
         <div class="su_node">
          <label title="开票计划"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">开票计划</span> </label>
         </div>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="收款计划"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">收款计划</span> </label>
         </div>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="付款计划"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">付款计划</span> </label>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div class="su_node_data">
     <div class="su_node">
      <label title="收款管理"> <span class="node-icon"><i class="fa fa-caret-right"></i></span> <span class="su_node_icon"><img src="下载.png" /></span><span class="su_node_name">收款管理</span> </label>
     </div>
     <div class="su_children" style="display: none;">
      <div class="su_nodes">
       <div class="su_tree ">
        <div class="su_node_data">
         <div class="su_node">
          <label title="开票信息"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">开票信息</span> </label>
         </div>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="收款台账"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">收款台账</span> </label>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
    <div class="su_node_data">
     <div class="su_node">
      <label title="付款管理"> <span class="node-icon"><i class="fa fa-caret-right"></i></span> <span class="su_node_icon"><img src="下载.png" /></span><span class="su_node_name">付款管理</span> </label>
     </div>
     <div class="su_children" style="display: none;">
      <div class="su_nodes">
       <div class="su_tree ">
        <div class="su_node_data">
         <div class="su_node">
          <label title="施工付款申请"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">施工付款申请</span> </label>
         </div>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="物资付款申请"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">物资付款申请</span> </label>
         </div>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="收票信息"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">收票信息</span> </label>
         </div>
        </div>
        <div class="su_node_data">
         <div class="su_node">
          <label title="付款台账"> <span class="node-icon">&nbsp;</span> <span class="su_node_icon"><img src="下载2.png" /></span><span class="su_node_name">付款台账</span> </label>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
 </div>
 <div class="su_right" id="su_right" style="height: 638px; margin-left: 220px;">
  <div class="su_tab_bar" id="breadcrumbs">
   <ul id="div_tab" class="su_tab_warper">
    <!-- <li class="" id="gzt"> <span><a href="javascript:;" class="menua" onclick="CreateDiv('gzt','http://epcc.hhwy.org/epc//view/fweb-mainframe-web/modules/index/workspace','工作台')" title="工作台">工作台</a></span> </li>  -->
    <!-- <li class="crent" id="e203e08f72c54220837c18f6ffcdb3bd"><span><a href="javascript:;" onclick="javascript:CreateDiv('e203e08f72c54220837c18f6ffcdb3bd','http://epcc.hhwy.org/epc//view/epc/domain-project/operate/contractManage/contractProject/contractprojectList','总承包工程合同',undefined)" title="总承包工程合同" class="menua">总承包工程合同</a><a class="menua_cloes" data-action="close" onclick="RemoveDiv('e203e08f72c54220837c18f6ffcdb3bd')" href="javascript:;" title="关闭当前窗口"><i class="fa fa-close"></i></a></span></li> -->
   </ul>
   <span href="javascript:;" class="su_arrow su_arrow_l" onclick="moveBackward()" style="display:none"> <i class="fa fa-chevron-left"></i> </span>
   <span href="javascript:;" class="su_arrow su_arrow_r disabled" onclick="moveForward()" style="display:none"> <i class="fa fa-chevron-right"></i> </span>
   <span href="111" class="zoomin"> <i class="fa fa-chevron-up"></i>
    <!--fa fa-unsorted--> </span>
  </div>
  <div class="su_right_main">
   <div id="div_panel" style="height: 579px;">
    <iframe width="100%" height="100%" frameborder="0" id="div_gzt" name="mainframe" src=""
    <!--style="display: none;"-->
    ></iframe>
    <!-- <iframe id="div_e203e08f72c54220837c18f6ffcdb3bd" src="contractprojectList.html" height="100%" frameborder="0" width="100%"></iframe> -->
   </div>
  </div>

  <div id="footer" class="" >
   <div
           style="height:20px;text-align:center;margin-left:-110px;height:30px;margin-bottom:10px;">版权所有：北京恒华伟业科技股份有限公司 </div>
  </div>
 </div>
</div>

<div id="directSwitch_c" class="zTreeDemoBackground left">
 <ul id="treeDemo" class="ztree">
  <li id="treeDemo_1" class="level0" tabindex="0" hidefocus="true" treenode=""><span id="treeDemo_1_switch" title="" class="button level0 switch noline_close" treenode_switch=""></span><a id="treeDemo_1_a" class="level0" treenode_a="" onclick="" target="_blank" style="color:red;" title="黔西南州兴义市城市配电网建设与改造项目（EPC）总承包项目部"><span id="treeDemo_1_ico" title="" treenode_ico="" class="button ico_close" style=""></span><span id="treeDemo_1_span" class="node_name">黔西南州兴义市城市配电网建设与改造项目（EPC）总承包项目部</span></a></li>
  <li id="treeDemo_40" class="level0" tabindex="0" hidefocus="true" treenode=""><span id="treeDemo_40_switch" title="" class="button level0 switch noline_close" treenode_switch=""></span><a id="treeDemo_40_a" class="level0" treenode_a="" onclick="" target="_blank" style="color:red;" title="安泽县配网自动化改造工程总承包工程项目部"><span id="treeDemo_40_ico" title="" treenode_ico="" class="button ico_close" style=""></span><span id="treeDemo_40_span" class="node_name">安泽县配网自动化改造工程总承包工程项目部</span></a></li>
  <li id="treeDemo_45" class="level0" tabindex="0" hidefocus="true" treenode=""><span id="treeDemo_45_switch" title="" class="button level0 switch noline_close" treenode_switch=""></span><a id="treeDemo_45_a" class="level0" treenode_a="" onclick="" target="_blank" style="color:red;" title="园区电网110kV栖凤变10kV配套送出新建工程总承包项目部"><span id="treeDemo_45_ico" title="" treenode_ico="" class="button ico_close" style=""></span><span id="treeDemo_45_span" class="node_name">园区电网110kV栖凤变10kV配套送出新建工程总承包项目部</span></a></li>
  <li id="treeDemo_53" class="level0" tabindex="0" hidefocus="true" treenode=""><span id="treeDemo_53_switch" title="" class="button level0 switch noline_close" treenode_switch=""></span><a id="treeDemo_53_a" class="level0" treenode_a="" onclick="" target="_blank" style="color:red;" title="安泽县农网10千伏线路改造工程总承包项目部"><span id="treeDemo_53_ico" title="" treenode_ico="" class="button ico_close" style=""></span><span id="treeDemo_53_span" class="node_name">安泽县农网10千伏线路改造工程总承包项目部</span></a></li>
  <li id="treeDemo_56" class="level0" tabindex="0" hidefocus="true" treenode=""><span id="treeDemo_56_switch" title="" class="button level0 switch noline_close" treenode_switch=""></span><a id="treeDemo_56_a" class="level0" treenode_a="" onclick="" target="_blank" style="color:red;" title="35千伏城提跑线8+7#～13+2#电缆下地迁改工程(EPC)总承包项目部"><span id="treeDemo_56_ico" title="" treenode_ico="" class="button ico_close" style=""></span><span id="treeDemo_56_span" class="node_name">35千伏城提跑线8+7#～13+2#电缆下地迁改工程(EPC)总承包项目部</span></a></li>
  <li id="treeDemo_59" class="level0" tabindex="0" hidefocus="true" treenode=""><span id="treeDemo_59_switch" title="" class="button level0 switch noline_close" treenode_switch=""></span><a id="treeDemo_59_a" class="level0" treenode_a="" onclick="" target="_blank" style="color:red;" title="怀来110千伏线路送出工程总承包项目部"><span id="treeDemo_59_ico" title="" treenode_ico="" class="button ico_close" style=""></span><span id="treeDemo_59_span" class="node_name">怀来110千伏线路送出工程总承包项目部</span></a></li>
 </ul>
</div>
<script>
    new Vue({
        el: 'body',
    })
</script>
</body>
</html>